/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webaccess.retailws.Delegate;

import com.webaccess.retailws.Bean.ImageBean;
import com.webaccess.retailws.DAO.AdminDAO;

/**
 *
 * @author Owner
 */
public class AdminDelegate {

    AdminDAO adminDAOObj = null;    

    public AdminDelegate() {
        adminDAOObj = new AdminDAO();
        
    }

    public ImageBean[] getAllHomePageImage() {
        return adminDAOObj.getAllHomePageImage();
    }

    public ImageBean getImage(Long imageId) {
        return adminDAOObj.getImage(imageId);
    }

    public boolean deleteImage(Long imageId) {
        return adminDAOObj.deleteImage(imageId);
    }

    public boolean saveImage(ImageBean imagBean) {
        return adminDAOObj.saveImage(imagBean);
    }
}
